package cn.dhnep.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dhn
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_package_order")
@ApiModel(value="PackageOrder对象", description="")
public class PackageOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "打包id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "旧订单id")
    private String oldIds;

    @ApiModelProperty(value = "骑手的open_id")
    private String openId;

    @ApiModelProperty(value = "打包编号")
    private String orderNumber;

    @ApiModelProperty(value = "打包时间")
    private Date orderTime;

    @ApiModelProperty(value = "骑手姓名")
    private String horsemanName;

    @ApiModelProperty(value = "打包的所有产品的类型")
    private String productType;

    @ApiModelProperty(value = "骑手收货价")
    private Double orderSumHorseman;

    @ApiModelProperty(value = "回收站收价")
    private Double orderSumRecycle;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区")
    private String region;

    @ApiModelProperty(value = "回收站点位置")
    private String recycleAddress;

    @ApiModelProperty(value = "回收站编号")
    private String recycleNumber;

    @ApiModelProperty(value = "回收站名字")
    private String recycleName;

    @ApiModelProperty(value = "回收员编号")
    private String recycleChildrenNumber;

    @ApiModelProperty(value = "清运时间")
    private Date clearTime;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "订单状态")
    private String status;

    @ApiModelProperty(value = "取消原因")
    private String orderExplain;

    @ApiModelProperty(value = "一个打包订单有多个打包订单项")
    @TableField(exist = false)
    private List<PackageOrderItem> packageOrderItems;


}
